//读入数据行
#include "stdio.h"

int main(int argc, char const *argv[])
{
  int i;
  char line[81];
  void readLine(char buffer[]);

  for (int i = 0; i < 3; i++)
  {
    readLine(line);
    printf("%s\n\n", line);
  }

  return 0;
}

//从终端读入文本行
void readLine(char buffer[])
{
  char character;
  int i = 0;
  do
  {
    character = getchar();
    buffer[i] = character;
    ++i;
  } while (character != '\n');
  buffer[i - 1] = '\0';
}
